/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;
/**
 *
 * @author percynguyen92
 */
public class Dapan
{
    private Integer maDA;
    private int maCH;
    private String noiDung;
    private boolean isTrue;

    public Dapan() {
    }

    public Dapan(Integer maDA, int maCH, String noiDung, boolean isTrue) {
        this.maDA = maDA;
        this.maCH = maCH;
        this.noiDung = noiDung;
        this.isTrue = isTrue;
    }

    public Integer getMaDA() {
        return maDA;
    }

    public void setMaDA(Integer maDA) {
        this.maDA = maDA;
    }

    public int getMaCH() {
        return maCH;
    }

    public void setMaCH(int maCH) {
        this.maCH = maCH;
    }

    public String getNoiDung() {
        return noiDung;
    }

    public void setNoiDung(String noiDung) {
        this.noiDung = noiDung;
    }

    public boolean getIsTrue() {
        return isTrue;
    }

    public void setIsTrue(boolean isTrue) {
        this.isTrue = isTrue;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (maDA != null ? maDA.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Dapan)) {
            return false;
        }
        Dapan other = (Dapan) object;
        if ((this.maDA == null && other.maDA != null) || (this.maDA != null && !this.maDA.equals(other.maDA))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Model.Dapan[ maDA=" + maDA + " ]";
    }
    
}
